package Classwork;

public class Demo02 {
    private int age;
    public void setAge(int age){
     if (age < 0 && age > 150){
         this.age = age;}
     else{
         System.out.println("输入不合法");
     }

    }
}
